﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace ADB_QuanLyThuVien
{
    public class DTO_NhaXuatBan
    {
        string _maNXB;
        [DisplayName("Mã NXB")]
        public string MaNXB
        {
            get { return _maNXB; }
            set { _maNXB = value; }
        }

        string _tenNXB;
        [DisplayName("Tên NXB")]
        public string TenNXB
        {
            get { return _tenNXB; }
            set { _tenNXB = value; }
        }

        string _diaChi;
        [DisplayName("Địa chỉ")]
        public string DiaChi
        {
            get { return _diaChi; }
            set { _diaChi = value; }
        }

        string _email;
        [DisplayName("Email")]
        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        public DTO_NhaXuatBan(string manxb, string tennxb, string diachi, string sodt, string email)
        {
            // TODO: Complete member initialization
            _maNXB = manxb;
            _tenNXB = tennxb;
            _diaChi = diachi;
            _soDT = sodt;
            _email = email;
        }
        public DTO_NhaXuatBan()
        {
            _maNXB = null;
            _tenNXB = null;
            _diaChi = null;
            _email = null;
            _soDT = null;
        }
        string _soDT;
        [DisplayName("Số điện thoại")]
        public string SoDT
        {
            get { return _soDT; }
            set { _soDT = value; }
        }
        public override string ToString()
        {
            return TenNXB;
        }
    }
}
